package com.itm.lqm.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.itm.lqm.entity.Art;

public interface ArtService {
	public List<Art> selectAllArts();
	public Art selectArtById(Integer aid);
	public Art selectArtByNameAndPassword(String username,String password);
	public boolean addArt(Art art);
	public Art selectArtByUsername(String username);
	public boolean updateArtByPassword(@Param("aid")Integer aid,@Param("password")String password,@Param("password1")String password1,@Param("password2")String password2);
	public Art  selectArtAndPublishById(@Param("aid")Integer aid);
	public boolean updateArtById(Art art);
	public Art selectArtByD_id(@Param("aid")Integer aid);
	
	public Art selectArtAndDiscussById(@Param("aid")Integer aid);
	
	public Art selectArtByA_id(@Param("aid")Integer aid);

}
